using System.Collections.Generic;

namespace JlPay.Sdk.Models.Marketing
{
    /// <summary>
    /// 商户额度信息模型
    /// </summary>
    public class MerchantQuotaInfo
    {
        /// <summary>
        /// 计费类型数组字符串
        /// </summary>
        public string? SortValue { get; set; }

        /// <summary>
        /// 最新的额度值，单位分
        /// </summary>
        public string? UpdateTotal { get; set; }

        /// <summary>
        /// 将对象转换为字典，使用snake_case命名策略
        /// </summary>
        /// <returns>字典对象</returns>
        public Dictionary<string, object> ToMap()
        {
            var result = new Dictionary<string, object>();
            
            if (!string.IsNullOrEmpty(SortValue))
                result["sort_value"] = SortValue;
            
            if (!string.IsNullOrEmpty(UpdateTotal))
                result["update_total"] = UpdateTotal;
            
            return result;
        }
    }
} 